package com.lagou;

import com.lagou.server.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ServerBootstrap {

    public static void main(String[] args) throws InterruptedException {
        SpringApplication.run(ServerBootstrap.class, args);
        //启动服务端
        NettyServer nettyServer = new NettyServer();
        nettyServer.start("127.0.0.1", 8990);
    }

}
